<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<base href="${pageContext.request.contextPath}/">
<style type="text/css">
	table{
		border-spacing: 0;
		border-collapse:collapse;
		width: 70%;
		line-height: 30px;
	}
	table,tr,td,th{
		text-align:center;
		border: 1px solid #000;
	}
	a{
		margin-right: 10px;
		text-decoration: none;
	}
</style>
</head>
<body>
<a href="user/input">添加</a>
<hr>
<table>
	<tr>
		<th>编号</th>
		<th>姓名</th>
		<th>密码</th>
		<th>操作</th>
	</tr>
	<c:forEach items="${users}" var="user" varStatus="s">
		<tr>
			<td>${user.id}</td>
			<td>${user.name}</td>
			<td>${user.password}</td>
			<td><a href="user/input?id=${user.id}">修改</a><a href="user/del?id=${user.id}">删除</a></td>
		</tr>
	</c:forEach>
</table>
</body>
</html>